namespace Ross.OA.EntityFramework.Migrations
{
    using System;
    using System.Data.Entity.Migrations;
    
    public partial class AddEntityPOReciveDetail : DbMigration
    {
        public override void Up()
        {
            CreateTable(
                "dbo.POReciveDetail",
                c => new
                    {
                        Id = c.Guid(nullable: false),
                        order_code = c.String(nullable: false, maxLength: 50),
                        order_line = c.String(nullable: false, maxLength: 8),
                        fits_stock = c.Int(nullable: false),
                        stock_date = c.String(maxLength: 50),
                        schedule_code = c.String(maxLength: 50),
                        fits_schedule = c.Int(nullable: false),
                        schedule_date = c.String(maxLength: 50),
                        quantity_date = c.String(maxLength: 50),
                        fits_quantity = c.Int(nullable: false),
                        fits_rate = c.Int(nullable: false),
                    })
                .PrimaryKey(t => t.Id);
            
        }
        
        public override void Down()
        {
            DropTable("dbo.POReciveDetail");
        }
    }
}
